package com.mooc.yohoshop.ui.home;

import com.blankj.utilcode.util.LogUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.mooc.yohoshop.R;
import com.mooc.yohoshop.entity.CategoryEntity;

import org.jetbrains.annotations.NotNull;

public class HomeCategoryAdapter extends BaseQuickAdapter<CategoryEntity.Values, BaseViewHolder> {

    public HomeCategoryAdapter() {
        super(R.layout.item_home_category);
    }
    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CategoryEntity.Values values) {
        baseViewHolder.setText(R.id.home_category_tv,values.category_name);
    }
}
